package com.pan.behavioral.chain.node.shape.impl;

import com.pan.behavioral.chain.node.ChainNode;
import com.pan.behavioral.chain.node.shape.ShapeNode;

import java.awt.*;

/**
 *
 *
 *
 */
public class RedNode extends ShapeNode {
    public RedNode(ChainNode nextNode) {
        super(nextNode);
    }

    @Override
    public void handle(Graphics obj) {
        obj.setColor(Color.RED);
    }
}
